<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="//cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
    <script src="template.js"></script>
</head>
<body>
<div id="main"></div>
<script id="main_tpl" type="text/html">
    <h1>{{status}}</h1>
    <ul>
        {{each list}}
        <div>{{$index}}. {{$value.xh}}. {{$value.xm}}. {{$value.nj}}</div>
        {{/each}}
    </ul>
</script>

<script type="text/javascript">
     $.ajax( {
        url:'http://192.168.1.66/jw/app-info',
        data:{
            key : "杨涛",
            page : 0,
            num : 2
        },
        type:'post',
        cache:false,
        dataType:'json',
        success:function(data) {

            var html = template('main_tpl', data);
            $("#main").html(html);
        },
        error : function() {
            alert("异常！");
        }
    });
</script>
</body>
</html>